﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VK.Casemeet.Areas;

namespace VK.Casemeet.Web.Admin
{
    public partial class AreaList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            (this.Master as Site).SiteMapPathControl.MapPathList = new List<MapPath>(){
                new MapPath{ Text="桌面",Url="/Admin/Home.aspx"},
                new MapPath{ Text="地区列表",Url="#"}
            };

            if (!IsPostBack)
            {
                LoadData();
            }
        }

        protected void LoadData()
        {
            rptArea.DataSource = AreaBLL.GetAreaArray(0);
            rptArea.DataBind();
        }
    }
}